.sc {
  min-width: 1200px;
  background: #f5f5f5;
}

.sc-has {
  display: none;
}

.sc-empty {
  padding-top: 135px;
  margin: 20px 0;
  height: 365px;
  background: #fff;
  text-align: center;
  color: #7f7f7f;
  font-size: 14px;

  .icon-empty-cart {
    background-image: url(/images/icon-common.svg);
    background-position: -262px 0;
    background-repeat: no-repeat;
    display: block;
    height: 100px;
    margin: 0 auto 36px;
    width: 100px;
  }

  p {
    font-size: 18px;
    color: #a4a4a4;
    margin-bottom: 16px;
  }

  a {
    width: 172px;
    height: 46px;
    line-height: 46px;
    font-size: 18px;
    color: #fff;
    display: block;
    margin: 0 auto;
    background: #ca141d;
    border-radius: 2px;
  }
}

.sc-list-last {
  margin-bottom: 10px;
}

.sc-title {
  margin-top: 20px;
  background: #fff;
  line-height: 40px;
  padding-left: 40px;
  color: #a4a4a4;

  label {
    float: left;
    width: 150px;
  }
}

.sc-title, .sc-item-main {
  ul {
    float: left;

    li {
      float: left;
      width: 100px;
      margin-left: 30px;
      min-height: 14px;
      text-align: center;

      &:first-child {
        width: 450px;
        text-align: left;
        margin-left: 0;
      }
    }
  }
}

.checkbox {
  input {
    border: 0;
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('/images/icon-header.png') no-repeat -18px -129px;
    vertical-align: text-top;
    color: hsla(0, 0%, 100%, 0);
    cursor: pointer;
    font-size: 0;
    margin-right: 10px;

    &:focus {
    }

    outline: 0;

    &.checked {
      background-position: 0 -129px;
    }
  }
}

.sc-item {
  background: #fff;
  padding-left: 40px;
  margin-top: 10px;
  padding-top: 20px;

  > label {
    float: left;
    margin: 43px 3px 0 0;
  }

  &-area {
    float: left;
    width: 1130px;
    font-size: 14px;
  }

  &-main {
    margin-bottom: 18px;
    //position: relative;

    .p-img {
      width: 100px;
      height: 100px;
      float: left;
      margin-right: 20px;
      //position: relative;
      img {
        width: 100%;
        height: 100%;
      }
    }

    a.p-name {
      margin-bottom: 4px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-height: 20px;
      max-height: 40px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .p-info {
      color: #666;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      line-height: 17px;
    }

    .p-price {
      span {
        display: block;
        margin-bottom: 3px;
      }

      s {
        display: block;
        color: #a4a4a4;
      }

      .btn-discount {
        display: inline-block;
        font-size: 12px;
        position: relative;
        background: #ef5a62;
        text-align: center;
        color: #fff;
        width: 64px;
        height: 20px;
        line-height: 20px;
        padding: 0 2px;

        margin-top: 6px;
        cursor: pointer;

        &:before {
          left: -5px;
          background-position: -27px 0;
        }

        &:after {
          right: -5px;
          background-position: -32px 0;
        }

        &:before, &:after {
          content: '';
          width: 5px;
          height: 20px;
          position: absolute;
          top: 0;
          background-image: url(/images/icon50.png);
          background-repeat: no-repeat;
        }
      }
    }

    .p-stock {
      text-align: center;
      border: 1px solid #d6d6d6;
      width: 86px;
      margin: 0 auto;
      height: 20px;
      border-radius: 2px;
      position: relative;

      &-text {
        width: 42px;
        height: 20px;
        position: absolute;
        top: 0;
        left: 22px;
        text-align: center;
        border: 1px solid #d6d6d6;
        border-top: none;
        border-bottom: none;
        z-index: 1;
        outline: none;
      }

      &-btn {
        width: 86px;
        position: absolute;
        top: 0;
        left: 1px;

        a {
          width: 21px;
          height: 20px;
          line-height: 19px;
          float: left;
          font-size: 16px;
          text-align: center;
          color: #717171;

          &.disabled {
            color: #d6d6d6;
            cursor: not-allowed;
          }

          &:last-child {
            float: right;
          }
        }
      }
    }

    .p-price-total {
      color: #ca141d;
      font-weight: 700;
    }

    .p-price-save {
      display: block;
      font-weight: 400;
      color: #ca141d;

      &:before {
        content: "\7701";
        width: 16px;
        height: 16px;
        display: inline-block;
        position: relative;
        top: -1px;
        margin-right: 5px;
        font-size: 12px;
        line-height: 16px;
      }
    }

    .p-del {
      color: #a4a4a4;
    }
  }
}

.p-service {
  &-main {
    margin-bottom: 20px;
    width: 1039px;
    height: 48px;
    padding: 0 35px 0 14px;
    background: #fff;
    border: 1px solid #d6d6d6;
    font-size: 15px;
    line-height: 48px;
    margin-top: 16px;
    cursor: pointer;

    .p-service-link {
      float: right;

      a {
        text-decoration: underline;
      }
    }

    &:hover .service-name span {
      color: #ca141d;

    }
  }

  &-info {
    float: left;
    margin-right: 0;
    top: 1px;
    position: relative;

    .service-name {
      color: #3a3a3a;
      margin-left: 14px;
      float: left;
      max-width: 352px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;

      i {
        padding: 0 10px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        color: #cb1f17;
        border: 1px solid #cb1f17;
        display: inline-block;
        margin-right: 6px;
        font-style: normal;
      }
    }

    .service-price {
      float: left;
      margin-left: 16px;
      overflow: hidden;
      height: 48px;
      max-width: 154px;

      span {
        margin-right: 8px;
      }

      s {
        color: #aaa;
      }
    }
  }
}

.sc-item-main li:nth-child(2) {
  width: 140px;
  margin-left: 10px;
  margin-right: -20px;
}

.sc-tools {
  background: #fff;
  height: 60px;
  margin: 10px 0;

  &-fixed {
    background: #fff;
    min-width: 1200px;
    position: fixed;
    width: 100%;
    z-index: 50;
    left: 0;
    bottom: 0;
    box-shadow: 0 -4px 4px 0 hsla(0, 0%, 47.5%, .2);
    height: 60px;
  }

  &-control {
    float: left;
    line-height: 60px;

    > label {
      float: left;
      margin-left: 40px;
    }

    > a {
      margin-left: 20px;
    }
  }

  &-btn {
    float: right;

    a {
      width: 180px;
      height: 60px;
      line-height: 60px;
      display: block;
      background: #ca151e;
      font-size: 18px;
      color: #fff;
      text-align: center;

    }
  }

  &-price {
    float: right;
    padding-right: 30px;
    margin-top: 7px;
    text-align: right;

    p {
      font-size: 14px;
      position: relative;

      span {
        color: #ca151e;
        font-size: 18px;
        font-weight: 700;
      }

      em {
        font-style: normal;
        width: 12px;
        height: 12px;
        display: block;
        position: absolute;
        right: -18px;
        top: 7px;

        &:before {
          content: "";
          width: 12px;
          height: 12px;
          display: block;
          cursor: pointer;
          background-position: -22px -137px;
          background-image: url(/images/icon-order.png);
          background-repeat: no-repeat;
        }

        &:hover b {
          display: block;

          &:after {
            content: "";
            width: 21px;
            height: 10px;
            display: block;
            position: absolute;
            left: 22px;
            bottom: -10px;
            background-position: 0 -158px;
            background-image: url(/images/icon-order.png);
            background-repeat: no-repeat;
          }
        }
      }

      b {
        position: absolute;
        top: -43px;
        right: -27px;
        //display: block;
        width: 48px;
        background: #fff;
        border: 1px solid #d6d6d6;
        font-size: 12px;
        font-weight: 400;
        z-index: 10;
        padding: 5px 8px;
        box-shadow: 0 2px 5px hsla(0, 0%, 39.2%, .2);
        display: none;
      }
    }

    .total-choose {
      color: #a4a4a4;

      em {
        color: #ca151e;
        margin: 0 5px;
        font-weight: 700;
        font-style: normal;
      }

      span {
        color: #3a3a3a;
      }
    }
  }
}


input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

